package com.chem.lems.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
public class YearVO {
    private Integer January = 0;
    private Integer February = 0;
    private Integer March = 0;
    private Integer April = 0;
    private Integer May = 0;
    private Integer June = 0;
    private Integer July = 0;
    private Integer August = 0;
    private Integer September = 0;
    private Integer October = 0;
    private Integer November = 0;
    private Integer December = 0;
    public void  addMarch (Integer march){
        switch (march) {
            case 1:
                this.January++;break;
            case 2:
                this.February++;break;
            case 3:
                this.March++;break;
            case 4:
                this.April++;break;
            case 5:
                this.May++;break;
            case 6:
                this.June++;break;
            case 7:
                this.July++;break;
            case 8:
                this.August++;break;
            case 9:
                this.September++;break;
            case 10:
                this.October++;break;
            case 11:
                this.November++;break;
            case 12:
                this.December++;break;
        }
    }
}

